#集合
# data={1,5,2,"xiaofeng"}
# print(data)
# data.add(1.2)
# print(data)
# data={1,5,2,"xiaofeng",5}
# print(data)
# data=set()
# print(type(data))
# data=set()
# data.add("xiaofeng")
# data.add(2)
# print(data)
# data.discard("xiaofeng")
# print(data)
# v1={2,6,'xiao','feng'}
# v2={3,6,'feng','zhang'}
# print(v1.intersection(v2))
# print(v1&v2)
# print(v1.union(v2))
# print(v1|v2)
# print(v1.difference(v2))
# print(v1-v2)
# print(v2.difference(v1))
# print(v2-v1)
# v={2,6,'xiao','feng'}
# print(len(v))
# v={2,6,'xiao','feng'}
# for i in v:
#     print(i,end=' ')
# a='xajnxj'
# print(set(a))
# data={1,5,2,"xiaofeng",5}
# v=str(data)
# print(len(v))
# data={1,5,2,"xiaofeng",5}
# data['xiaofeng']='s'
# print(data)
# v1 = [11,22,["alex","eric"],33]
# v2 = set(v1) # 报错
# print(v2)
# data_list = [
#     "xiaofeng",
#     11,
#     (11, 22, 33, {"xiaofeng", "wang"}, 22),
#     [11, 22, 33, 22],
#     {11, 22, (True, "中国", "北京", "沙河"), 33}
# ]
# print(data_list)
# print({True,1})
# print({1,True})
# print({False,0})
# print({0,False})
# print((1,3,1))
# d3=(11,22)
# d4=(11,22)
# print(d3,d4)
# print((1,4)+(2,5))
# print((1,3)*2)
# data=('xiao',3,6)
# print(len(data))
# data=('xiao',3,6)
# print(data[::2])
# print(data[1::2])
# print(data[2::-1])
# print(data)
# data=('xiao',3,6)
# for i in data:
#     print(i)
# user_list =('xiao',3,6)
# for index in range(len(user_list)):
#     item = user_list[index]
#     print(item)
data = ('xiao','wang',['zhang','li','qin'])
print(data[0])
print(data[2])
print(data[2][0])
print(data[2][1][1])
data[2][1]='liu'
print(data)